#include "wscrequesthandler.h"
using namespace FsxWebService;

//
// Constructor
//
WscRequestHandler::WscRequestHandler(const int port, const QString &serverUrl, const QString &path, QObject* parent) :
    HttpRequestHandler(parent), _port(port), _path(path), _serverUrl(serverUrl)
{
    // code
}

//
// Does the give path match the request's path?
//
const bool WscRequestHandler::isMatchingPath(const QString &path) const
{
    if (path.isEmpty()) return false;
    return path.startsWith(WscRequestHandler::_path, Qt::CaseInsensitive);
}
